package com.xuan.webwork.service.imp;

import java.util.List;

import org.springframework.stereotype.Service;

import com.xuan.webwork.repository.StudentRepository;
import com.xuan.webwork.service.studentSevice;

@Service
public class studentServiceImp implements studentSevice {
    private final StudentRepository studentRepository;

    public studentServiceImp(com.xuan.webwork.repository.StudentRepository studentRepository) {
        this.studentRepository = studentRepository;
    }

    @Override
    public List<com.xuan.webwork.entitys.Student> getAllStudents() {
        return studentRepository.findAll();
    }
    
}
